package com.umpay.dto.merAccess.req.payment;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merAccess.req.CommonReq;
import org.hibernate.validator.constraints.NotEmpty;

	/**
	 * @ClassName: ConsumeOfficialAccountPayReq  
	 * @Description: 公众号支付请求类
	 * @author chenxinyu 
	 * @date July 2, 2018
	 */
	public class WechatPlatformPayReq extends CommonReq{
		
		/**
		 * 服务器异步通知路径
		 */
		@NotEmpty(message = "服务器异步通知路径不能为空")		
		@Pattern(message = "服务器异步通知路径格式不正确")
		private String notify_url;				

		/**
		 * 商户流水号
		 */
		@NotEmpty(message = "商户流水号不能为空")		
		@Pattern(message = "商户流水号格式不正确")
		private String mer_trace;
		/**
		 * 联动交易号
		 */
		@NotEmpty(message = "联动交易号不能为空")		
		@Pattern(message = "联动交易号格式不正确")
		private String trade_no;	
		/**
		 * 支付类型  WECHAT:微信    ALIPAY:支付宝
		 */
		@NotEmpty(message = "支付方式不能为空")
		private String 	pay_type;
		/**
		 * 支付金额
		 */
		@NotEmpty(message = "金额不能为空")		
		@Pattern(message = "金额格式不正确")
		private String 	amount;	
		@Pattern(message = "二维码有效期格式不正确")
		private String expire_time;
		/**
		 * 用户授权标识
		 */
		@NotEmpty(message = "用户授权标识不能为空")		
		@Pattern(message = "用户授权标识格式不正确")
		private String 	openid;	
		/**
		 * 微信或支付宝的 appId
		 */
//		@NotEmpty(message = "APPID不能为空")		
		@Pattern(message = "APPID格式不正确")
		private String 	appid;	
		/**
		 * 备注信息
		 */
		@Pattern
		private String goods_inf;
		@Pattern
		private String goods_id;
		private String 	remark;
				
		public String getRemark() {
			return remark;
		}
		public void setRemark(String remark) {
			this.remark = remark;
		}
		public String getNotify_url() {
			return notify_url;
		}
		public void setNotify_url(String notify_url) {
			this.notify_url = notify_url;
		}
		public String getMer_trace() {
			return mer_trace;
		}
		public void setMer_trace(String mer_trace) {
			this.mer_trace = mer_trace;
		}
		public String getTrade_no() {
			return trade_no;
		}
		public void setTrade_no(String trade_no) {
			this.trade_no = trade_no;
		}
		public String getPay_type() {
			return pay_type;
		}
		public void setPay_type(String pay_type) {
			this.pay_type = pay_type;
		}
		public String getOpenid() {
			return openid;
		}
		public void setOpenid(String openid) {
			this.openid = openid;
		}
		public String getAppid() {
			return appid;
		}
		public void setAppid(String appid) {
			this.appid = appid;
		}
		public String getAmount() {
			return amount;
		}
		public void setAmount(String amount) {
			this.amount = amount;
		}
		public String getExpire_time() {
			return expire_time;
		}
		public void setExpire_time(String expire_time) {
			this.expire_time = expire_time;
		}
		
		public String getGoods_inf() {
			return goods_inf;
		}
		public void setGoods_inf(String goods_inf) {
			this.goods_inf = goods_inf;
		}
		
		public String getGoods_id() {
			return goods_id;
		}
		public void setGoods_id(String goods_id) {
			this.goods_id = goods_id;
		}
		@Override
		public String toString() {
			return "WechatPlatformPayReq [notify_url=" + notify_url + ", mer_trace=" + mer_trace + ", trade_no="
					+ trade_no + ", pay_type=" + pay_type + ", amount=" + amount + ", expire_time=" + expire_time
					+ ", openid=" + openid + ", appid=" + appid + ", goods_inf=" + goods_inf + ", goods_id=" + goods_id
					+ ", remark=" + remark + "]";
		}
		
	}
		